﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="NewProducts.ascx.cs"
    Inherits="ShopOnline.Controls.NewProducts" %>
<ul class="products-grid jcarousel-skin-tango" id="jcarousel">
    <asp:Repeater ID="rpt" runat="server">
        <ItemTemplate>
            <li class="item">
                <div class="product-box">
                    <a runat="server" href='<%# string.Format("~/ProductDetails.aspx?{0}=", ShopOnline.BasePage.PRD)  + string.Format("{0}_{1}", ShopOnline.Utilities.GetValidParam(Eval("ProductName").ToString()), Eval("ID").ToString()) %>'
                        title='<%# Eval("ProductName") %>' class="product-image"><span></span>
                        <img src="<%# (Eval("Thumbnail") == DBNull.Value || Eval("Thumbnail").ToString() == "") ? GetDefaultPic() : ShopOnline.Utilities.GetImageUrl((string)Eval("Thumbnail")) %>"
                            title="<%# Eval("ProductName") %>" alt="<%# Eval("ProductName") %>" />
                        <%--<asp:Image ID="Image1" runat="server" AlternateText='<%# Eval("ProductName") %>' class="imgThumbnail" Width="142px" Height="133px" 
                            ImageUrl='<%# (Eval("Thumbnail") == DBNull.Value || Eval("Thumbnail").ToString() == "") ? GetDefaultPic() : ShopOnline.Utilities.GetImageUrl((string)Eval("Thumbnail")) %>' />--%>
                    </a>
                    <div class="product-shop">
                        <h3 class="product-name">
                            <a runat="server" href='<%# string.Format("~/ProductDetails.aspx?{0}=", ShopOnline.BasePage.PRD)  + string.Format("{0}_{1}", ShopOnline.Utilities.GetValidParam(Eval("ProductName").ToString()), Eval("ID").ToString()) %>'
                                title='<%# Eval("ProductName") %>'>
                                <%# Eval("ProductName") %></a></h3>
                        <div class="price-box">
                            <span class="price">
                                <%# SessionUser == null || SessionUser.Price ==  POSSystem.BLL.CustomerType.CustomerPrice.SalePrice ? "$" + Eval("SalePrice").ToString() : (SessionUser.Price ==  POSSystem.BLL.CustomerType.CustomerPrice.DealerPrice ? "$" + Eval("DealerPrice").ToString() : "$" + Eval("PartnerPrice").ToString()) %>
                            </span>
                        </div>
                    </div>
                    <br class="clear" />
                </div>
            </li>
        </ItemTemplate>
    </asp:Repeater>
</ul>
